package com.md.api.dao;

import com.md.api.entity.RecycleBin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface RecycleBinMapper {
    int delete(RecycleBin record);
    int deleteById(Long id);
    void updateStatus(@Param("ids")List<Long> ids);
    int insert(RecycleBin record);

    List<RecycleBin> getDeleteList();
    List<RecycleBin> getRecycleBinByUserId(@Param("userId") String userId, @Param("status") int status);
    List<RecycleBin> selectAll();

}